<template>
  <div>
    <el-container>
      <el-container>
        <el-aside width="200px" style="height: 350px">
          <div style="display: flex;flex-direction: column;justify-content: center" id="ranktable">
            <div class="rankname" :class="id==93?'ranknameclass':'ranknameclass2'">
              <a @click="id=93">飙升榜</a>
            </div>
            <div class="rankname" :class="id==17?'ranknameclass':'ranknameclass2'">
              <a @click="id=17;">新歌榜</a>
            </div>
            <div class="rankname" :class="id==16?'ranknameclass':'ranknameclass2'">
              <a @click="id=16">热歌榜</a>
            </div>
            <div class="rankname" :class="id==158?'ranknameclass':'ranknameclass2'">
              <a @click="id=158">抖音榜</a>
            </div>
            <div class="rankname" :class="id==176?'ranknameclass':'ranknameclass2'">
              <a @click="id=176">dj榜</a>
            </div>
            {{ id }}
          </div>

        </el-aside>

        <el-main>
          <Ranking_list :id="id"></Ranking_list>

        </el-main>
      </el-container>
    </el-container>


  </div>
</template>

<script>
import Ranking_list from "./ranking_list";

export default {
  name: "leaderboard",
  components: {Ranking_list},
  data() {
    return {
      id: 93,
    }
  },
  methods: {}
}
</script>

<style scoped>
.ranknameclass {
  background: green;
}

.ranknameclass2 {
  background: white;
}

.rankname {
  height: 50px;
  width: 100%;
  margin-bottom: 10px;
}

.rankname > a {
  cursor: pointer;
}

.el-header, .el-footer {

  text-align: center;
  line-height: 60px;
}

.el-aside {
  /*background-color: #D3DCE6;*/
  color: #333;
  text-align: center;
  line-height: 50px;
}


body > .el-container {
  margin-bottom: 40px;
}

.el-container:nth-child(5) .el-aside,
.el-container:nth-child(6) .el-aside {
  line-height: 260px;
}

.el-container:nth-child(7) .el-aside {
  line-height: 320px;
}
</style>
